package cn.tianyigps.tianyigpspublic.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.time.LocalDate;
import java.time.LocalTime;
import java.util.Map;

/**
 * @Author: LiuHao
 * @Descirption:
 * @Date: 2019/4/11_19:54
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class Rule extends BaseEntity {

    private static final long serialVersionUID = 2395674347667303158L;

    private String name;//规则名

    private String type;//规则类型

    private LocalDate effectDate;//规则生效时间，日期

    private LocalDate invalidDate;//规则失效时间，日期

    private LocalTime effectTime;//规则每天生效的时间段，开始时间

    private LocalTime invalidTime;//规则每天生效的时间段，结束时间

    private Map<String,Object> params;//扩展参数
}
